/*
 * Copyright (c) 2024-2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION!

import { int32, int64, float32 } from "@koalaui/common"
import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop"
import { NodeAttach, remember } from "@koalaui/runtime"
import { Want } from "./ArkArkuiExternalInterfaces"
import { CommonMethod } from "./ArkCommonInterfaces"
import { SizeOptions } from "./ArkUnitsInterfaces"
import { Visibility } from "./ArkEnumsInterfaces"
import { Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Any_Void, Callback_Void } from "./SyntheticDeclarations"
export enum FormDimension {
    DIMENSION_1_2 = 0,
    Dimension_1_2 = 0,
    DIMENSION_2_2 = 1,
    Dimension_2_2 = 1,
    DIMENSION_2_4 = 2,
    Dimension_2_4 = 2,
    DIMENSION_4_4 = 3,
    Dimension_4_4 = 3,
    DIMENSION_2_1 = 4,
    Dimension_2_1 = 4,
    DIMENSION_1_1 = 6,
    DIMENSION_6_4 = 7
}
export enum FormRenderingMode {
    FULL_COLOR = 0,
    SINGLE_COLOR = 1
}
export enum FormShape {
    RECT = 1,
    CIRCLE = 2
}
export interface FormInfo {
    id: number | string;
    name: string;
    bundle: string;
    ability: string;
    module: string;
    dimension?: FormDimension;
    temporary?: boolean;
    want?: Want;
    renderingMode?: FormRenderingMode;
    shape?: FormShape;
}
export type FormComponentInterface = (value: FormInfo) => FormComponentAttribute;
export interface FormCallbackInfo {
    id: number;
    idString: string;
}
export interface FormComponentAttribute extends CommonMethod<FormComponentAttribute> {
    size: SizeOptions;
    moduleName: string;
    dimension: FormDimension;
    allowUpdate: boolean;
    visibility: Visibility;
    onAcquired: ((parameter: FormCallbackInfo) => void);
    onError: ((info: Literal_Number_errcode_String_msg) => void);
    onRouter: ((info: object) => void);
    onUninstall: ((parameter: FormCallbackInfo) => void);
    onLoad: (() => void);
}
